<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
	function sum(a){
		var num=0;
		for(var i=1; i<=a; i++){
			num=num+i;
			if(i==5){
				return num;
			}
		}
		return num;
	}
	var data=sum(100);
	alert(data);
	</script>
</head>
<body>
	
</body>
</html>